﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.DialogUI {
    import flash.events.*;
    import flash.display.*;
    import flash.utils.*;

    public class LevelUpDialog extends GenericDialog {

        protected var m_level:int;
        protected var m_buyableItems:Array;
        protected var m_giftableItems:Array;
        protected var m_specialBuyableItems:Array;

        public function LevelUpDialog(_arg1:int, _arg2:Array, _arg3:Array, _arg4:Array){
            this.m_level = _arg1;
            this.m_buyableItems = _arg2;
            this.m_giftableItems = _arg3;
            this.m_specialBuyableItems = _arg4;
            super("", ZLoc.t("Dialogs", "Congratulations"), GenericDialogView.TYPE_SHARECANCEL, null, "", "", true);
        }
        override public function isLockable():Boolean{
            return (true);
        }
        override protected function onAssetsLoaded(_arg1:Event=null):void{
            var _local2:Dictionary = new Dictionary();
            _local2["dialog_bg"] = (new m_comObject.dialog_levelUp_bg() as DisplayObject);
            _local2["dialog_horizontalRule"] = m_comObject.dialog_horizontalRule;
            _local2["dialog_bg_special"] = (new m_comObject.dialog_levelUp_bg_special() as DisplayObject);
            _local2["dialog_item"] = m_comObject.dialog_levelUp_item;
            _local2["dialog_item_special"] = m_comObject.dialog_offline_specialItem;
            m_jpanel = new LevelUpDialogView(_local2, m_message, m_title, m_type, m_callback, this.m_level, this.m_buyableItems, this.m_giftableItems, this.m_specialBuyableItems);
            finalizeAndShow();
        }

    }
}//package Display.DialogUI 
